<%= props.topLevelComment %>

/**
 * @type {import('@types/aws-lambda').APIGatewayProxyHandler}
 */
exports.handler = async (event) => {
    console.log(`EVENT: ${JSON.stringify(event)}`);
    return {
        statusCode: 200,
    <%- props.enableCors ?
    `   headers: {
            \"Access-Control-Allow-Origin\": \"*\",
            \"Access-Control-Allow-Headers\": \"*\"
        },`
    :
    `//  Uncomment below to enable CORS requests
    //  headers: {
    //      "Access-Control-Allow-Origin": "*",
    //      "Access-Control-Allow-Headers": "*"
    //  },`
     %>
        body: JSON.stringify('Hello from Lambda!'),
    };
};
